<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
        用户名：<input v-model="user.username"><br>
        密码：<input type="password" v-model="user.password"><br>
        <input type="button" value="login" @click="submitForm()">
</div>
<script src="../js/axios-0.18.0.js"></script>
<script src="../js/vue.js"></script>
<script src="../element-ui/lib/index.js"></script>
<script src="../element-ui/lib/theme-chalk/index.css"></script>
<script>
    new Vue({
        el: "#app",
        data: {
            user: {}
        },
        methods: {
            submitForm() {
                    console.log(this.user);
            }
        }
    })
</script>
</body>
</html>